#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_exam1.py
# author:王雯雯
# datetime:2024-11-12 
# software: PyCharm

import random


class Dog:
    def __init__(self):

        self.attack_power = 15

        self.health = 80

    def bite(self, person):

        person.health -= self.attack_power
        person.attack_power -= 2
        self.attack_power -= 3
        if person.health < 0:
            person.health = 0
        if self.attack_power < 0:
            self.attack_power = 0
